package com.seecen.controller;

import com.seecen.pojo.Pet;
import com.seecen.service.PetService;
import com.seecen.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/pet")
@CrossOrigin
public class PetController {

    @Autowired
    private PetService petService;
    @PostMapping("addPet")
    public Result addPet(@RequestBody Pet pet){
      Result  ret = petService.addPet(pet);
      return ret;
    }

}
